#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_actionSaveAs_triggered();
    void on_actionOpen_triggered();
    void on_actionExit_triggered();
    void on_actionAbout_triggered();

private:
    Ui::MainWindow *ui;
    void Load();
    void Save(const QString& xfile);
    std::vector<std::string> LoadValue(const std::string& line, int count, int spacesNum);

    unsigned int VAL_DIST;
    QString inFile;
};

#endif // MAINWINDOW_H
